//
//  VVSegmentedView.h
//  XLife
//
//  Created by 恩佐John on 16/4/5.
//  Copyright © 2016年 恩佐John. All rights reserved.
//

#import <UIKit/UIKit.h>
@class VVSegmentedView;
@protocol VVSegementedViewDelegate <NSObject>
@required
//代理方法,获取当前下标 isClick == Yes 表示通过点击选中,否则表示通过外部方法选中
- (void)VVSegementedViewSelectedIndex:(NSInteger)index isClick:(BOOL)isClick;

@end
@interface VVSegmentedView : UIView
@property (nonatomic, weak) id<VVSegementedViewDelegate>delegate;
//初始化方法
- (VVSegmentedView*)initWithFrame:(CGRect)frame titleArray:(NSArray*)titleArray delegate:(id)delegate;
//传入index改变选中按钮
- (void)changeVVSegementedViewWithIndex:(NSInteger)index;

@end
